package com.ruoyi.stuinfo.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.stuinfo.domain.Attendancerecord;

/**
 * 考勤记录Service接口
 *
 * @author zc
 * @date 2025-05-14
 */
public interface IAttendancerecordService
{
    /**
     * 查询考勤记录
     *
     * @param recordId 考勤记录主键
     * @return 考勤记录
     */
    public Attendancerecord selectAttendancerecordByRecordId(Long recordId);

    /**
     * 查询考勤记录列表
     *
     * @param attendancerecord 考勤记录
     * @return 考勤记录集合
     */
    public List<Attendancerecord> selectAttendancerecordList(Attendancerecord attendancerecord);

    /**
     * 新增考勤记录
     *
     * @param attendancerecord 考勤记录
     * @return 结果
     */
    public int insertAttendancerecord(Attendancerecord attendancerecord);

    /**
     * 修改考勤记录
     *
     * @param attendancerecord 考勤记录
     * @return 结果
     */
    public int updateAttendancerecord(Attendancerecord attendancerecord);

    /**
     * 批量删除考勤记录
     *
     * @param recordIds 需要删除的考勤记录主键集合
     * @return 结果
     */
    public int deleteAttendancerecordByRecordIds(Long[] recordIds);

    /**
     * 删除考勤记录信息
     *
     * @param recordId 考勤记录主键
     * @return 结果
     */
    public int deleteAttendancerecordByRecordId(Long recordId);

    public List<Attendancerecord> selectAttendancerecordList_handteacher(String teacherId);

    public List<Attendancerecord> selectAttendancerecordList_Xiteacher(String teacherId);

    Map<String, Object> getDormitoryStats();
    public Map<String, Object> getAbnormalStudents(int pageNum, int pageSize,String type);
}
